package friend

import (
	"day12_12_homework/internal/api/friend"
	"day12_12_homework/internal/middle"
	"github.com/gin-gonic/gin"
)

func FriendRouter(c *gin.RouterGroup) {
	friends := c.Group("/friend").Use(middle.AuthMiddleware())
	{
		friends.POST("/find", friend.FindCreateFriends)
		friends.POST("/create", friend.CreateFriend)
		friends.POST("/createNo", friend.CreateNoFriend)
		friends.POST("/del", friend.DelFriend)
	}
}
